
<#include "header.ftl">
  <!-- 内容区域 -->
<div class="tpl-content-wrapper">
 <div class="container-fluid am-cf">
                <div class="row">
                    <div class="am-u-sm-12 am-u-md-12 am-u-lg-9">
                        <ol class="am-breadcrumb">
						  <li><a href="${Domain}my" class="am-icon-home">首页</a></li>
						  <li><a href="${Domain}my/analysis"> 定制统计</a></li>
						  <li class="am-active">详情</li>				  
						</ol>
                    </div>
                  	<#include "../common/return.ftl">
                </div>
  </div>
       <div class="row-content am-cf">
                <div class="row">
                    <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                        <div class="widget am-cf">
                            <div class="widget-head am-cf">
                                <div class="widget-title  am-fl">${analysis.name}统计详情</div>							
                            </div>
                            <div class="widget-body  am-fr">

                                <div class="am-u-sm-12 am-u-md-6 am-u-lg-6">
                                    
                                </div>
                                <div class="am-u-sm-12 am-u-md-6 am-u-lg-3">
                                 
                                </div>
                                <div class="am-u-sm-12 am-u-md-12 am-u-lg-3">
                                	
                                </div>

                                <div class="am-u-sm-12">
                                
                                <div class="am-scrollable-horizontal">
                                
                                    <table width="100%" class="<#include "../common/table-class.ftl">"  >
                                        <thead>
                                            <tr>
                                            
                                             
                                                <th>姓名</th>
                                               <th>状态</th>
                                               <th>基准时间</th>
                                            <#list questions as item>
                                               <th >${item.name}</th>
                                             </#list>  
                                                <th width="100px">操作</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                     		<#list patients as patient>
                                            <tr>
                                            
                                                <td><span data-am-popover="{theme: 'danger sm',content: '姓名：${patient.name} <br>身份证：${freemarker.Simple(patient.no)} <br>性别：<#switch patient.gender>
										           <#case 0> 未知 <#break>
										           <#case 1>男<#break>
										           <#case 2>女<#break>
										           <#default>未知
										        	</#switch> 年龄： ${freemarker.Age(patient.birthday)}岁', trigger: 'hover focus'}"> ${patient.name}</span></td>   
                                                <td><#switch patient.alive>
										           <#case -1> <span class="am-text-danger">已故</span> <#break>
										           <#case 1> <span class="am-text-success">健在</span><#break>
										           <#case 0> 未知<#break>
										           <#default>未知
										        	</#switch> </td> 
                                                 <td>${patient.bdate}</td> 
                                            <#list questions as question>
                                               <td >${map[patient.id+'_'+question.id]!"-"}</td>
                                             </#list>  
                                                 <td>
                                                  <div class="tpl-table-black-operation">
                                                        <a href="${Domain}my/analysis/patientshow/${analysis.id}/${patient.id}?url=${url}">
                                                            <i class="am-icon-file-o"></i> 详情
                                                        </a>
  
                                                    </div>
                                                 </td>
                                            </tr>
                                            </#list>  
                                            
                                        </tbody>
                                        <thead>
                                            <tr>
                                            
                                             <td></td>
                                             <td></td>
                                             <td></td>                                          
                                            <#list questions as item>
                                               <td >
                                               <div class="tpl-table-black-operation">
                                                        <a href="${Domain}my/analysis/questionshow/${analysis.id}/${item.id}?url=${url}">
                                                            <i class="am-icon-file-o"></i> 详情
                                                        </a>
  
                                                    </div>
                                               </th>
                                             </#list>  
                                                <td width="100px"></td>
                                            </tr>
                                        </thead>
                                    </table>
                                    </div>
                               
                                </div>
                              
                              
                            </div>
                        </div>
                    </div>
                </div>
            </div>

 </div>   
 
       
<#include "footer.ftl">